import React, {useEffect, useState} from 'react';
import Children from '@/components/13- pubsub/children'
import pubsub from "pubsub-js";

const FunChildren = (props) => {

    return (
        <div>
            <h4>函数组件 ==> 子组件</h4>
            <button onClick={
                () => {
                    pubsub.publish("one", 'FunChildren ==> 只修改一次');
                }
            }>修改count ==>
            </button>
            <Children></Children>
        </div>
    );
};

export default FunChildren;